<?php
namespace gnomephp\mvc;
/**
 * Notifier for sending mails and other fancy features.
 * @author peec
 *
 */
class Notifier{
	
	/**
	 * Returns instance of a specific notifier.
	 * @param string $class The class name of the notifier.
	 */
	public function load($class){
		
		
		$ns = GNOME_APP_NS.'\notifiers\\'.$class;
		
		if ($ns instanceof Mailer){
			return new $ns();
		}else{
			return new $ns;
		}
	}
	
	
}